package cn.wolfcode.web.controller;

import cn.wolfcode.service.IArticlesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController()
@RequestMapping("articles")
public class ArticlesController {

    @Autowired
    private IArticlesService articlesService;

    @PostMapping("/incr")
    public Integer incr(Long id){
       return articlesService.incr(id);
    }

}
